import 'base_model.dart';

class MobileBindModel extends BaseModel {
  MobileBindUserModel user;
  String token;
  String appToken;
  MobileBindModel.fromJson(Map<String, dynamic> data) : super.fromJson(data) {
    user = MobileBindUserModel.fromJson(data['user']);
    token = data['token'] ?? '';
    appToken = data['appToken'] ?? '';
  }
  @override
  Map<String, dynamic> toJson() {
    return {
      'user': user,
      'token': token,
      'appToken': appToken
    };
  }
}
class MobileBindUserModel {
  int uid;
  String username;
  String email;
  String mobile;
  MobileBindUserModel.fromJson(Map<String, dynamic> data) {
    uid = data['uid'];
    username = data['username'] ?? '';
    email = data['email'] ?? '';
    mobile = data['mobile'] ?? '';
  }
}
